import request from '@/utils/request'

// 查询财产折旧年限列表
export function list(query) {
  return request({
    url: '/archives/depreciat/list',
    method: 'get',
    params: query
  })
}

// 查询财产折旧年限详细
export function get(depreciatId) {
  return request({
    url: '/archives/depreciat/' + depreciatId,
    method: 'get'
  })
}

// 新增财产折旧年限
export function add(data) {
  return request({
    url: '/archives/depreciat',
    method: 'post',
    data: data
  })
}

// 修改财产折旧年限
export function update(data) {
  return request({
    url: '/archives/depreciat',
    method: 'put',
    data: data
  })
}

// 删除财产折旧年限
export function del(depreciatId) {
  return request({
    url: '/archives/depreciat/' + depreciatId,
    method: 'delete'
  })
}
